package com.ruoyi.shop.service;

import java.util.List;
import com.ruoyi.shop.domain.ShopGoodsCart;

/**
 * 购物车Service接口
 * 
 * @author jiaodacailei
 * @date 2022-06-12
 */
public interface IShopGoodsCartService 
{
    /**
     * 查询购物车
     * 
     * @param id 购物车主键
     * @return 购物车
     */
    public ShopGoodsCart selectShopGoodsCartById(Long id);

    /**
     * 查询购物车列表
     * 
     * @param shopGoodsCart 购物车
     * @return 购物车集合
     */
    public List<ShopGoodsCart> selectShopGoodsCartList(ShopGoodsCart shopGoodsCart);

    /**
     * 新增购物车
     * 
     * @param shopGoodsCart 购物车
     * @return 结果
     */
    public int insertShopGoodsCart(ShopGoodsCart shopGoodsCart);

    /**
     * 修改购物车
     * 
     * @param shopGoodsCart 购物车
     * @return 结果
     */
    public int updateShopGoodsCart(ShopGoodsCart shopGoodsCart);

    /**
     * 批量删除购物车
     * 
     * @param ids 需要删除的购物车主键集合
     * @return 结果
     */
    public int deleteShopGoodsCartByIds(Long[] ids);

    /**
     * 删除购物车信息
     * 
     * @param id 购物车主键
     * @return 结果
     */
    public int deleteShopGoodsCartById(Long id);

    void insertShopGoodsCartByGoods(long keyPropValue);
}
